$(document).ready(function(){
	var date=new Date;
	var year=date.getFullYear();
	$('#nowyear').val(year);
})

function sfFormatter(val, row) {
	return (!row.type) ? "暂无" : row.type.toString().split("-")[0];
}

function mdFormatter(val, row) {
	return (!row.type) ? "暂无" : row.type.toString().split("-")[1];
}

function doSearch(){
	$('#yhxxDatagrid').datagrid('load',{
		nowyear: $('#nowyear').val()
	});
}